{template header}

<div class="container">

    <ol class="breadcrumb">
        <li><a href="{SITE_URL}">首页</a></li>
        <li><a href="{tsUrl('group')}">小组</a></li>
        <li><a href="{tsUrl('group','show',array('id'=>$strGroup['groupid']))}">{$strGroup['groupname']}</a></li>
        <li class="active">用户</li>
    </ol>

<div class="row">

<div class="col-md-8">



    <div class="panel panel-default">
        <div class="panel-heading">{$strGroup['groupname']}成员</div>
        <div class="panel-body">



<div class="facelist">

<ul>
{loop $arrGroupUser $key $item}
<li>
<a href="{tsUrl('user','space',array('id'=>$item[userid]))}"><img class="img-circle" alt="{$item[username]}" src="{$item[face]}" width="48" height="48" /></a>
<p class="username">{$item[username]}</p>
<p>
{if $strGroup['userid']==$TS_USER['userid'] || $TS_USER['isadmin']==1}

{if $item['isadmin']==1}
<a href="javascript:void('0');" onclick="setAdmin('{$strGroup[groupid]}','{$item['userid']}','{$_SESSION['token']}')">取消管理员</a>
{elseif $item['isadmin']==0 && $strGroup['userid']!=$item['userid']}
<a href="javascript:void('0');" onclick="setAdmin('{$strGroup[groupid]}','{$item['userid']}','{$_SESSION['token']}')">设为管理员</a>
<br /><a href="javascript:void('0');" onclick="kickedGroup('{$strGroup['groupid']}','{$item['userid']}')" title="踢出">X</a>
{/if}

{/if}</p>
</li>
{/loop}
</ul>

</div>


<div class="clear"></div>
            <div class="page">{$pageUrl}</div>


</div>
</div>



</div>


<div class="col-md-4">


    <div class="panel panel-default">
        <div class="panel-heading">{$strGroup['groupname']}组长</div>
        <div class="panel-body">


            <a class="nbg" href="{tsUrl('user','space',array('id'=>$strLeader[userid]))}"><img class="img-circle" alt="{$strLeader[username]}" src="{$strLeader[face]}" width="48" height="48" /></a>
            <p>{$strLeader[username]}</p>
        </div>
    </div>





    <div class="panel panel-default">
        <div class="panel-heading">{$strGroup['groupname']}管理员</div>
        <div class="panel-body">

{if $arrAdmin}
            <div class="facelist">
                <ul>
                    {loop $arrAdmin $key $item}
                    <li>
                        <a href="{tsUrl('user','space',array('id'=>$item[userid]))}"><img class="img-circle" alt="{$item[username]}" src="{$item[face]}" width="48" height="48" /></a>
                        <p>{$item[username]}</p>
                        <p>{if $strGroup['userid']==$TS_USER['userid'] || $TS_USER['isadmin']==1}

                            <a href="javascript:void('0');" onclick="setAdmin('{$strGroup[groupid]}','{$item['userid']}','{$_SESSION['token']}')">
                                {if $item['isadmin']==1}
                                取消管理员
                                {elseif $item['isadmin']==0}
                                设为管理员
                                {/if}
                            </a>
                            {/if}</p>
                    </li>
                    {/loop}
                </ul>
            </div>

            {else}
            暂无
            {/if}

        </div>
    </div>




    <div class="clear"></div>
    <!--广告位-->
    {php doAction('gobad','300')}


</div>
</div>
</div>

{template footer}